package com.croofr.utils.object;

import com.croofr.utils.exceptions.DefenseException;

/**
 * Defense checkers for Object.
 * <p/>
 * User: bednar<br/>
 * Date: Jan 24, 2010<br/>
 * Time: 1:13:49 PM
 */
public final class ObjectDefense
{
    /**
     * Throw DefenseException if object is null.
     *
     * @param object for check
     * @see com.croofr.utils.exceptions.DefenseException
     */
    public static void notNull(Object object)
    {
        if (object == null)
        {
            throw new DefenseException("Object is null!");
        }
    }
}
